import {Server} from "../core/Server";
import {MatchManager} from "../core/MatchManager";
import {CockyRoom} from "./CockyRoom";

const server = new Server();
server.start();

const matchManager = MatchManager.matchRoom(CockyRoom);
server.on('connected', function (e) {
  console.log('onconnceted')
  matchManager.listenMatch(e.target)
})